package com.hk.core.autoconfigure.data.r2dbc;

import lombok.Data;
import org.springframework.boot.autoconfigure.r2dbc.R2dbcProperties;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.Map;

/**
 * @author Kevin
 * @date 2023-11-12 17:17
 */
@Data
@ConfigurationProperties(prefix = "hk.r2dbc.multi-ds")
public class R2dbcMultiDataSourceProperties {

    private boolean enabled = false;

    private Map<String, String> userNameTenantIdMap;

    private Map<String, R2dbcProperties> dataSources;
}
